<template>
  <div>
    <edit-table :columns="columns" :data="tableData"></edit-table>
  </div>
</template>

<script>
import EditTable from '_c/edit-table'
export default {
  name: 'editTabe',
  data() {
    return {
      columns: [
        {
          title: 'Name',
          key: 'name'
        },
        {
          title: 'Age',
          key: 'age',
          editTable: true
        },
        {
          title: 'Address',
          key: 'address',
          editTable: true
        }
      ],
      tableData: [
        {
          name: 'John Brown',
          age: 18,
          address: 'New York No. 1 Lake Park',
          date: '2016-10-03'
        },
        {
          name: 'Jim Green',
          age: 24,
          address: 'London No. 1 Lake Park',
          date: '2016-10-01'
        },
        {
          name: 'Joe Black',
          age: 30,
          address: 'Sydney No. 1 Lake Park',
          date: '2016-10-02'
        },
        {
          name: 'Jon Snow',
          age: 26,
          address: 'Ottawa No. 2 Lake Park',
          date: '2016-10-04'
        }
      ]
    }
  },
  components: {
    EditTable
  }
}
</script>
